#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
package ${package}.domain.user.service.impl;
import ${package}.domain.user.model.entity.UserEntity;
import ${package}.domain.user.repository.IUserRepository;
import ${package}.domain.user.service.IUserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserService implements IUserService {

    @Resource
    private IUserRepository userRepository;

    @Override
    public void deleteUser(List<Long> userId) {
        userRepository.delete(userId);
    }

    @Override
    public void saveUser(UserEntity userEntity) {
        userRepository.save(userEntity);
    }

    @Override
    public UserEntity getUserByUserId(Long userId) {
        return userRepository.findByUserId(userId);
    }

    @Override
    public void updateUser(UserEntity userEntity) {
        userRepository.update(userEntity);
    }
}